package com.itheima02;

public class Work14 {
    public static void main(String[] args) {
        int a = method(5);
        System.out.println("a = " + a);
    }

    public static int method(int n) {
        if (n == 1) {
            return 1;
        }
        return method(n - 1) * n;
    }
}
